<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableSelects extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('selects', function (Blueprint $table) {
            $table->increments('id');   // 主键
            $table->integer('tid');     // 话题id
            $table->integer('sid');     // 选项id
            $table->string('link');     // 资源链接，图片地址，视频url，文字描述等
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('selects');
    }
}
